<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
<script type="text/javascript">
//     1.将map转成对象
var map={}
 var map = new Map();
map.set('name','Zoe').set('age',16).set('gender','male');
// const arr=[...map];
// for (let i = 0; i < arr.length; i++) {
//     map[i]=arr[i]
// }
//  map.length=arr.length
//  console.log(map);
for([k,v] of map){
map[k]=v
} 
    var name='keys';
    var ma = new Map();
        console.log(typeof ma); //ma是对象
        //create
        ma.set(name, 'Zoe');
    
        ma.set(name, '张三'); //返回增加后的map
        console.log(ma);
     console.log(+0===-0);  //true
        console.log(Object.is(+0,-0));  //false
        console.log(Object.is(+0,0));//true


        let map = new Map();

        map.set(-0, 123);  //不管是+0,0,-0,当成了同一个键，
</script>
</body>
</html>